package com.gm.manager.module.manager.service;

import com.gm.manager.common.entity.db.UserDaoEntity;
import com.gm.manager.module.manager.entity.UserInfo;
import com.gm.manager.module.manager.mapper.UserInfoMapper;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserInfoService {
    @Autowired
    UserInfoMapper userInfoMapper;

    public List<UserInfo> findAll(){
        return userInfoMapper.findAll();
    }
    public void saveUser(UserDaoEntity userDaoEntity){
        userInfoMapper.saveUser(userDaoEntity);
    }
    public void updataUser(UserDaoEntity userDaoEntity){
        userInfoMapper.updataUser(userDaoEntity);
    }
    public void deleteUser(Integer id){
        userInfoMapper.deleteUser(id);
    }
    public UserDaoEntity findUserById(Integer id){
        return userInfoMapper.findUserById(id);
    }
}
